package com.personal.test.common.exception;

/**
 * @author linyh
 * @version 1.0
 * @email 1503386669@qq.com
 * @date 2020/10/19 15:01
 */

/**
 * 自定义文件未找到异常
 */
public class MyFileNotFoundException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    private String msg;

    private int code = 500;

    public MyFileNotFoundException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public MyFileNotFoundException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public MyFileNotFoundException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public MyFileNotFoundException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

}
